﻿namespace EyeOpen.Data.Nibernate.Mapping
{
    using EyeOpen.Domain;

    public class CredentialMap : OwnedMap<Credential>
    {
        protected CredentialMap()
        {
            Map(x => x.Email)
                .Unique()
                .Not.Nullable()
                .WithLengthOf(250);

            Map(x => x.Password)
                .Unique()
                .Not.Nullable()
                .WithLengthOf(16);
        }
    }
}